Unofficial port of Instantdb for Toddle

This is a complete port of the client-side instant sdk to toddle. It includes realtime database queries, auth, presence, cursors, typing indicator, activity and storage.

Get copy/paste examples to try quickly in your Toddle app. The example page shows the main features of Instant and has fast intructions to use all of them in your app.

Go to example page

You can follow the official documentation, anything in there can be used in Toddle.

Every time the documentation usea a react hook you should use the corresponding toddle component. The component will expose in the context formulas to get data and workflows to execute functions. Every attribute in the components is reactive and will automatically update the sdk functions.

Every time the documentation usea a react hook you should use the corresponding toddle component. The component will expose in the context formulas to get data and workflows to execute functions. Every attribute in the components is reactive and will automatically update the sdk functions.

Exported actions with the same name as the react hooks should not be used. They power the components and are exported only for advanced usage. Other actions are named after auth and storage functions of the sdk.

Formulas return object or functions needed for transactions (id, ix, lookup). Chunk formula simplifies creation of transaction chunks and is meant to be used to generate the parameters of the transact action. Leaving empty the entityId parameter will generate a new id automatically. Transact action automatically batches transactions following the guide in the documentation.

Every time a parameter or attribute should be an object you can either contruct an object or use valid JSON.

Anywhere in the app initialize instantdb by using the init action. All the used components will automatically start working as soon as the init action completes.

Read the official documentation Go to example page